const webpack = require('webpack')
const path = require('path')

module.exports = {
  entry: ['./src/deregister.ts'],
  output: {
    filename: 'deregister.js',
    path: path.resolve(__dirname, 'dist')
  },
  target: 'node',
  module: {
    rules: [{
      test: /\.ts$/,
      loader: 'ts-loader',
      exclude: /node_modules/
    }]
  },
  resolve: {
    extensions: ['.ts', '.js']
  }
}
